<%@ include file="IsAdmin.jsp"%><%@ page import="java.sql.*"%>
<%
try
{
	Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
	Connection connection = DriverManager.getConnection(
			"jdbc:odbc:SPMS", "", "");
	Statement statement = connection.createStatement();
	statement.executeUpdate("update Professor set committeId = 1 where ID="+request.getParameter("prof"));
	response.sendRedirect("admin.jsp");
}
catch (ClassNotFoundException cnfe)
{
	out.println("No such class.");
}%>
